@import '../../../../styles/theme.less';

@keyframes statusScale {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.quorum-list-page{
    height: 100%;
    .quorum-network{
        // background: #FFFFFF;
        // border-radius: 2px;
        // padding: 24px 32px;
        .network-title{
            font-size: 16px;
            font-family: PingFangSC-Medium, PingFang SC;
            font-weight: 500;
            color: #171E2D;
            padding-left: 8px;
            position: relative;
            &:after{
                content: '';
                position: absolute;
                width: 6px;
                height: 16px;
                background: @primary-color;
                left: -6px;
            }
        }
        .network-list{
            margin-top: 10px;
            display: flex;
            flex-wrap: wrap;
        }
        .network-item{
            width: calc((100% - 22px * 3) / 4);
            height: 219px;
            background: #FCFCFC;
            border-radius: 2px;
            border: 1px solid #dce2ee;
            padding: 26px 24px 0 24px;
            position: relative;
            margin-left: 20px;
            margin-bottom: 24px;
            cursor: pointer;
            position: relative;
            transition: all .3s;
            &:hover{
                border: 1px @primary-color solid;
                box-shadow: 0px 6px 18px 0px rgba(20, 30, 44, 0.1);
                .delete-item{
                    visibility: visible;
                }
            }
            &.disabled-click {
                cursor: not-allowed;
            }
            .delete-item{
                position: absolute;
                right: 0;
                width: 32px;
                height: 24px;
                background: #F7F7F7;
                border-radius: 4px 0px 0px 4px;
                border: 1px solid #E8EAEE;
                display: flex;
                align-items: center;
                justify-content: center;
                visibility: hidden;
            }
            .item-name {
                position: relative;
                font-size: 14px;
                font-family: PingFangSC-Regular, PingFang SC;
                font-weight: 400;
                color: #333;
                line-height: 20px;
                padding-bottom: 16px;
                border-bottom: 1px solid #F7F7F9;
                margin-bottom: 16px;
                .status {
                    margin-right: 8px;
                    .status-common {
                        display: inline-block;
                        width: 5px;
                        height: 5px;
                        border-radius: 50%;
                        vertical-align: middle;
                        margin-top: -1px;
                        animation: statusScale 1s ease-out infinite;
                        &.status-success {
                            background: #13C111;
                            box-shadow: 0 0 0 3.5px #C6FDC5;
                        }
                        &.status-creating {
                            background: #E53232;
                            box-shadow: 0 0 0 3.5px rgba(229, 50, 50, 0.2);
                        }
                    }
                }
                .status-icon {
                    width: 14px;
                    height: 14px;
                    margin-right: 6px;
                    margin-top: -10px;
                }
                .name {
                    display: inline-block;
                    overflow: hidden;
                    -o-text-overflow: ellipsis;
                    text-overflow: ellipsis;
                    white-space: nowrap;
                    width: calc(100% - 43px);
                }
                .operate {
                    position: absolute;
                    top: 0;
                    right: 0;
                    display: flex;
                    flex-direction: column;
                    width: 15px;
                    height: 15px;
                    align-items: center;
                    justify-content: space-around;
                    .point {
                        width: 2px;
                        height: 2px;
                        border-radius: 50%;
                        background: #999999;

                    }
                }

                .domain {
                    font-size: 12px;
                    font-family: HelveticaNeue;
                    color: rgba(23, 30, 45, 0.25);
                    line-height: 20px;
                    margin-left: 15px;
                }
            }
            .item-info{
                display: flex;
                justify-content: space-between;
                font-size: 12px;
                color: rgba(23, 30, 45, 0.85);
                line-height: 22px;
                margin-top: 8px;
                .label{
                    font-size: 12px;
                    color: rgba(23, 30, 45, 0.45);
                }
                span:last-of-type{
                    text-align: right;
                    margin-left: 8px;
                    flex: 1;
                    .ellipsis-lines(1);
                }
            }
            &:nth-of-type(4n+1) {
                margin-left: 0;
            }
        }
        .creating-item{
            cursor: no-drop;
        }
        .item-add{
            width: calc((100% - 22px * 3) / 4);
            height: 219px;
            background: #FCFCFC;
            border-radius: 2px;
            border: 1px dashed #dce2ee;
            display: flex;
            flex-direction: row;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            transition: all .3s;
            &:hover{
                box-shadow: 0px 6px 18px 0px rgba(20, 30, 44, 0.1);
                border: 1px @primary-color dashed;
            }
            .add-icon{
                display: flex;
                justify-content: center;
                align-items: center;
                .icon-h{
                    width: 60px;
                    height: 3px;
                    background: #D1D7E4;
                    border-radius: 4px;
                }
                .icon-v{
                    width: 3px;
                    height: 60px;
                    background: #D1D7E4;
                    border-radius: 4px;
                    position: relative;
                    left: -29px;
                }
                
            }
            .quorum-plus {
                font-size: 14px;
                margin-right: 10px;
            }
            .add-tit{
                font-size: 14px;
                font-family: PingFangSC-Regular, PingFang SC;
                font-weight: 400;
                color: #555555;
                line-height: 20px;
            }
        }
       
        .item-footer{
            width: 100%;
            height: 48px;
            background: #F7F7F7;
            border-radius: 0px 0px 5px 5px;
            display: flex;
            position: absolute;
            bottom: 0;
            left: 0;
            border-top: 1px #E8EAEE solid;
            & > div{
                flex: 1;
                line-height: 48px;
                text-align: center;
                // cursor: pointer;
            }
            .item-status{
                font-size: 12px;
                font-family: PingFangSC-Regular, PingFang SC;
                font-weight: 400;
            }
            .success{
                .ant-badge-status-processing{
                    background-color: #13C111;
                }
                .ant-badge-status-processing::after{
                    border-color: #13C111;
                }
                .ant-badge-status-text{
                    color: #13C111;
                    font-size: 12px;
                }
            }
            .creating{
                .ant-badge-status-text{
                    color: @primary-color;
                    font-size: 12px;
                }
            }
            .go-detail{
                font-size: 12px;
                font-family: PingFangSC-Regular, PingFang SC;
                font-weight: 400;
                color: rgba(23, 30, 45, 0.65);
                position: relative;
                cursor: pointer;
                &:after{
                    content: '';
                    position: absolute;
                    left: 0;
                    width: 1px;
                    height: 20px;  
                    background-color: #E8EAEE; 
                    top: 13px;
                }
            }
            .creating-click{
                cursor: no-drop;
            }
        }
    }
}